/*
 * @LastEditors: 七七
 * @Date: 2023-01-06 10:04:36
 */
import React, { Component } from 'react'
import List from './components/List/List'
import Search from './components/Search/Search'


export default class App extends Component {
  //初始化状态
  state = {
    users: [], //users初始值为数组
    isFirst: true, //是否为第一次打开页面
    isLoding: false, //是否处于加载状态
    err: '', //存储请求相关的错误信息
  }

  render() {
    // const { users } = this.state
    return (
      <div className="container">
        <Search updateAppState={this.updateAppState} />
        {/* <List users={users} /> */}
        <List {...this.state} />
      </div>
    )
  }
}
